package com.atguigu.test;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;


public class ExcelListener extends AnalysisEventListener<userData> {

    @Override
    public void invoke(userData userData, AnalysisContext analysisContext) {
           //每一行得读取
         System.out.println(userData);
    }

    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        //表头信息
         System.out.println("表头信息"+headMap);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("读取后执行");
    }
}
